import request from '../methods.js'
let config = {ShowLoading : true,ShowMsg : true,getAllData : false,new:false,system:false,store:false} 
export default {
	// 下单
	AddOrder:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/Orders/AddOrder',prams,data)
	},
	// 获取订单详情
	GetOrderInfo:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/Orders/getorderinfobyidorno',prams,data)
	},
	// 获取用户订单
	getallorder:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/Orders/getallorder',prams,data)
	},
	// 获取支付信息
	MiniProgramPay:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/WeChatPay/MiniProgramPay',prams,data)
	},
	// 取消订单
	modifyorder:async function(prams){
		let data={...config}
		data.store=true
		return await request.Get('/api/v1/Orders/modifyorder',prams,data)
	},
	// 申请售后
	insertaftersale:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/Aftersale/insertaftersale',prams,data)
	},
	// 获取售后列表
	aftersaleorder:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/Aftersale/aftersaleorder',prams,data)
	},
	// 获取售后详情
	aftersaleorderinfo:async function(prams){
		let data={...config}
		data.store=true
		return await request.Get('/api/v1/Aftersale/aftersaleorderinfo',prams,data)
	},
	// 取消售后申请
	updateaftersaleorder:async function(prams){
		let data={...config}
		data.store=true
		return await request.Get('/api/v1/Aftersale/updateaftersaleorder',prams,data)
	},
	// 填写物流信息
	addlogistics:async function(prams){
		let data={...config}
		data.store=true
		return await request.Post('/api/v1/ Logistics/addlogistics',prams,data)
	},
	// 获取会员订单
	GetFellowInfo:async function(prams){
		let data={...config}
		data.new=true
		return await request.Post('/api/v1/FellowInfo/GetFellowInfo',prams,data)
	},
	// 查看物流
	wuliu:async function(prams){
		let data={...config}
		data.store=true
		return await request.Get('/api/v1/ Logistics/looklogisticsinfo',prams,data)
	}
}